import React, { Component } from 'react';
import {Alert} from "react-native";
import { WebView } from 'react-native-webview';
import Loading from "../components/Loading/index";
export default class DetailPage extends Component {

    constructor(props) {
        super(props);
        this.state = {
            
        };
    }
    
    render() {
        const {route} = this.props;
        const {courseId} = route.params;
        Alert.alert(
            "提示",
            "内容来自第三方，仅供参考"
           )
        return (
            <WebView
                source={{ uri: 'https://ke.qq.com/course/' +  courseId}}
                startInLoadingState={true}
                renderLoading={() => <Loading />}
            />
        );
    }
    
}

